<script setup>
const route = useRoute()

// 检查是否为登录或注册页面
const isAuthPage = computed(() => {
  return route.path === '/login' || route.path === '/register'
})
</script>

<template>
  <footer class="app-footer" :class="{ 'auth-page': isAuthPage }">
    <div class="footer-container">
      <!-- 版权信息 -->
      <div class="copyright">
        <p>© 2025 博客空间. Made with ❤️ by Developer</p>
      </div>
    </div>
  </footer>
</template>

<style scoped>
.app-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-top: auto;
}

.app-footer.auth-page {
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 版权信息 */
.copyright {
  text-align: center;
  padding: 24px 0;
}

.copyright p {
  margin: 0;
  font-size: 13px;
  color: #fff;
}

.app-footer.auth-page .copyright p {
  color: #000;
}
</style>
